import service from '@/utils/request'
import { prefix } from '../common'
export const useDictTypeAllApi = () => {
	return service.get(prefix + '/sys/dictType/all')
}

export const useDictTypeApi = (id: Number) => {
	return service.get(prefix + '/sys/dictType/?id=' + id)
}

export const useDictTypeListApi = (pid: Number) => {
	return service.get(prefix + '/sys/dictType/page')
}

export const useDictTypeSubmitApi = (dataForm: any) => {
	return service.post(prefix + '/sys/dictType', dataForm)
}

export const useDictDataApi = (id: Number) => {
	return service.get(prefix + '/sys/dictData?id=' + id)
}

export const useDictDataSubmitApi = (dataForm: any) => {
	return service.post(prefix + '/sys/dictData', dataForm)
}
